package com.example.demo.controller;

import com.example.demo.repository.UserRepository;
import com.example.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fa
 * @description DemoController
 * @date 2020/10/15 0015 下午 04:04
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @PostMapping("/insert-test-data")
    public String insertTestData(Integer startName, Integer userSize) {
        return demoService.insertTestData(startName, userSize);
    }

}
